﻿
using SqlSugar;
using System.ComponentModel;
using System.ComponentModel.DataAnnotations;

namespace CoreCms.Net.Model.Entities
{
    /// <summary>
    ///  首页导航表
    /// </summary>
    [SugarTable("xrc_navigation", TableDescription = "首页导航表")]
    public partial class XrcNavigation
    {
        /// <summary>
        /// 构造函数
        /// </summary>
        public XrcNavigation()
        {

        }

        /// <summary>
        /// id
        /// </summary>
        [Display(Name = "id")]

        [SugarColumn(IsPrimaryKey = true, IsIdentity = true)]

        [Required(ErrorMessage = "请输入{0}")]
        public System.Int32 id { get; set; }


        /// <summary>
        /// 导航标题
        /// </summary>
        [Display(Name = "导航标题")]

        [Required(ErrorMessage = "请输入{0}")]

        public System.String title { get; set; }
        /// <summary>
        /// 图标
        /// </summary>
        [Display(Name = "图标")]

        public System.String img { get; set; }
        /// <summary>
        /// 导航跳转地址
        /// </summary>
        [Display(Name = "导航跳转地址")]

        public System.String href { get; set; }

        /// <summary>
        /// 类型    0导航  1 轮播图
        /// </summary>
        [Display(Name = "类型")]
        [StringLength(maximumLength: 255, ErrorMessage = "{0}不能超过{1}字")]
        public System.Int32 type { get; set; }

        /// <summary>
        /// 链接类型    1 内连接  2 其他小程序链接
        /// </summary>
        [Display(Name = "类型")]
        [StringLength(maximumLength: 255, ErrorMessage = "{0}不能超过{1}字")]
        public System.Int32 link_type { get; set; }

        /// <summary>
        /// 其他小程序 appid
        /// </summary>
        [Display(Name = "其他小程序appid")]
        [StringLength(maximumLength: 255, ErrorMessage = "{0}不能超过{1}字")]
        public System.String appid { get; set; }

        /// <summary>
        /// 显示状态
        /// </summary>
        [Display(Name = "显示状态")]
        [StringLength(maximumLength: 255, ErrorMessage = "{0}不能超过{1}字")]
        public System.Int32 state { get; set; }

        /// <summary>
        /// 备注
        /// </summary>
        [Display(Name = "备注")]
        [StringLength(maximumLength: 255, ErrorMessage = "{0}不能超过{1}字")]
        public System.String remark { get; set; }


        /// <summary>
        /// 提交时间
        /// </summary>
        [Display(Name = "提交时间")]

        [Required(ErrorMessage = "请输入{0}")]
        public System.DateTime creat_time { get; set; }



        /// <summary>
        /// 是否删除,0否,1是
        /// </summary>
        [Display(Name = "是否删除,0否,1是")]
        [SugarColumn(ColumnDescription = "是否删除,0否,1是")]
        [Required(ErrorMessage = "请输入{0}")]
        public System.Int32 delete { get; set; }

        /// <summary>
        /// 所属店铺ID
        /// </summary>
        [Display(Name = "所属店铺ID")]
        [SugarColumn(ColumnDescription = "所属店铺ID")]
        [Required(ErrorMessage = "请输入{0}")]
        public System.Int32 gid { get; set; }
    }
}
